#region Microsoft Public License
/*
 * (c) Copyright Chenjun Wu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

﻿using System;
using System.Windows.Controls;

namespace UTable.Objects.Controls
{
    public class UControlImpl: ControlBaseImpl
    {
        private Control _owner;

        public UControlImpl(Control owner): base(owner)
        {
            _owner = owner;
            Info.Background = _owner.Background;
        }

        internal new static void OverrideMetadata(Type type)
        {
            ControlBaseImpl.OverrideMetadata(type);
            // OverrideMetadata(Control.BackgroundProperty, type);
        }

        internal virtual void OnApplyTemplate()
        {
        }
    }
}
